package com.example.lexiangbackend.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

public class DeleteAccountRequest {
    
    @NotBlank(message = "验证码不能为空")
    @Pattern(regexp = "^\\d{4}$", message = "验证码必须是4位数字")
    private String verificationCode;
    
    @NotBlank(message = "密码不能为空")
    private String password;

    // 构造函数
    public DeleteAccountRequest() {}

    public DeleteAccountRequest(String verificationCode, String password) {
        this.verificationCode = verificationCode;
        this.password = password;
    }

    // Getters and Setters
    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
} 